import { defineStore } from 'pinia'

export default defineStore({
  id: 'global',
  state: () => ({
    collapse: false,
    routerAdd: false,
    activeMenu: ''
  }),
  actions: {
    changeCollapse() {
      this.collapse = !this.collapse
    },
    changeRouterAdd(status: boolean) {
      this.routerAdd = status
    },
    changeActiveMenu(menu: string) {
      this.activeMenu = menu
    }
  }
})
